
<#macro layout page_tab="">
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://jfinalbbs.liygheart.com/favicon.ico">

    <title>JFinal社区 - 后台管理</title>

    <!-- Bootstrap core CSS -->
    <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">

    <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

    <script src="${ctx_path}/static/js/jfinalbbs.js"></script>
</head>

<body>

<!-- Static navbar -->
<nav class="navbar navbar-default navbar-static-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/admin">JFinal社区</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li <#if page_tab="index"> class="active" </#if>><a href="/admin/index">首页</a></li>
                <li <#if page_tab="section"> class="active" </#if>><a href="/admin/section">模块</a></li>
                <li <#if page_tab="topic"> class="active" </#if>><a href="/admin/topic">话题</a></li>
                <li <#if page_tab="reply"> class="active" </#if>><a href="/admin/reply">回复</a></li>
                <li <#if page_tab="user"> class="active" </#if>><a href="/admin/user">用户</a></li>
                <li <#if page_tab="link"> class="active" </#if>><a href="/admin/link">友链</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="/admin/logout">退出</a></li>
            </ul>
        </div>
    </div>
</nav>


<div class="container">
    <#nested>
</div>
</body>
</html>
</#macro>